home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
power Window v2.5.adf
/
TB
/
README
< prev
Wrap
Text File
|
1988-09-15
|
2KB
|
38 lines
True BASIC:
True BASIC support has been implemented in a standalone program called
PW2TB. It accepts the PW2 intermediate file format as input. It outputs a
file containing a subroutine which handles all of the allocation of the data
structures via calls to a set of routines which allocate and then fill out
the structures. This set of routines is in the file called "PW2TBsupport"
and the compiled version is in "PW2TBsupport*". These routines use the
Intuition functions AllocRemember and FreeRemember to control memory usage
for EACH subroutine: every subroutine you generate will have its own
Remember pointer as well as its own name, both taken from the name of the
file generated. Therefore, the True BASIC Toolkit software package is
required.
To run the True BASIC converter (PW2TB), just run it. It will bring up a
file-requester asking you for a PW2 file to read in. Pick the file and
after PW2TB loads it, it will display it. PW2TB will bring up a window
letting you specify which filenames to generate and what "header" file to
include. The "header" file is any file which will be copied into the output
file before code generation begins. We suggest using some modification of
the file provided, called "PW2TB.header". This file contains the necessary
LIBRARY and DECLARE DEF statements to compile and run a True BASIC program
with PW2TB output, as well as an example program to open a screen, a window,
attach menus, wait for input and then clean up.
The switch on the code generation requester of PW2TB called "SMALLER IMAGES"
forces all CHIP memory allocations for Imagery to be cleared when allocated.
Then when the initialization statements are written, if the statement is to
force a memory word to 0, that statement is omitted because all of the CHIP
memory allocated is already 0. This can result in tremendous savings in code
size. Remember, Big Images result in Big Files, so we highly recommend the
use of this switch; however, it can make hand-editing of Imagery much more
difficult.
InovaTools1 glue routines for use with True BASIC are not yet available, but
are in development.
To quit PW2TB, just press the CANCEL button on the file-requester.